package com.google.code.alpaca.example.server;

import net.customware.gwt.dispatch.server.guice.ActionHandlerModule;

import com.google.code.alpaca.example.rpc.MessageAction;
import com.google.code.alpaca.example.rpc.MessageDeleteAction;
import com.google.code.alpaca.example.rpc.MessageSaveAction;
import com.google.code.alpaca.example.server.handler.MessageDeleteHandler;
import com.google.code.alpaca.example.server.handler.MessageHandler;
import com.google.code.alpaca.example.server.handler.MessageSaveHandler;

/**
 * @author Robert Munteanu
 * 
 */
public class ActionsModule extends ActionHandlerModule {

	@Override
	protected void configureHandlers() {
		bindHandler(MessageAction.class, MessageHandler.class);
		bindHandler(MessageDeleteAction.class, MessageDeleteHandler.class);
		bindHandler(MessageSaveAction.class, MessageSaveHandler.class);
	}

}
